﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WeaponLibrary;
namespace LogicProgram
{
    public class ProductPrinter
    {
        public void Print(List<Weapon> product,string type,int number) 
        {
            ProductFactory _fact = new ProductFactory();
            if (type == "Strike")
            {
                Weapon.Firearms.Gun _product= _fact.CreateGun();
                Console.WriteLine(_product.Name + " " + _product.Weight + " " + _product.Cost + " " + _product.Calibr + " " + _product.Capacity + " " + _product.Accuracy + " " + _product.Rapidity);
            }
            else
            {
                Weapon.Meleeweapons.Dagger _product = _fact.CreateDagger();
                Console.WriteLine(_product.Name + " " + _product.Weight + " " + _product.Cost + " " + _product.Length + " " + _product.HandCount + " " + _product.DoubleEdged);
            }
        }

    }
}

